package ie.dcu.spca.data;

import java.util.List;
import java.util.Map;

import ie.dcu.spca.model.Bean;

public interface BasicDataManager {

    static final String ID = "id";
    static final String COUNT = "count";
    static final String WEIGHT = "weight";
    static final String NAME = "name";
    static final String BILL_ID = "bill_id";
    static final String PRODUCT_ID = "product_id";
    static final String BARCODE = "barcode";
    static final String PRICE = "price";

    /**
     * Delete User from database
     * 
     * @param id
     */
    abstract void delete(int id);

    abstract int getId(Bean bean);

    abstract String getName(Bean bean);

    List<Bean> getBeanList();

    List<Map<String, Object>> getIdNameMapList();

    List<Map<String, Object>> getIdNameMapList(List<Bean> beanList);

}
